package routers

import (
	"are-you-hungry-db/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/food/create", &controllers.FoodController{}, "POST:Create")
	beego.Router("/order/list", &controllers.OrderController{}, "Get:List")
	beego.Router("/comment/create", &controllers.CommentController{}, "POST:Create")
}
